package org.dtrevien.metamodel.java;

import org.dtrevien.metamodel.java.visitor.Visitor;

public class Import {

	protected String classpath;

	public Import(String classpath) {
		super();
		this.classpath = classpath;
	}

	public String getClasspath() {
		return this.classpath;
	}
	
	public void accept(Visitor v) {
		v.visitImport(this);
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof Import) {
			if (((Import)o).getClasspath().equals(this.classpath)) return true;
		}
		return false;
	}
}
